home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-04-10 | 10.8 KB | 366 lines | [TEXT/MPS ] |
- ##################################################################################################################
- ## General LaserWriter GX printing test script for Virtual User test environment ##
- ##################################################################################################################
- ## Developed by Brad Reigel and Scott Cutler, Apple Computer, Inc. ##
- ##################################################################################################################
- ## Last Modified July 19, 1994 ##
- ##################################################################################################################
- ## See Main.lib for descriptions of all routines. ##
- ## ##
- ## This test expects a folder (or alias to folder) named " Documents" in the Apple Menu. ##
- ## After opening document, the script selects and prints with different options selected. ##
- ## When finished, application is closed, and next document in folder is opened. ##
- ## ##
- ## This script will work with the majority of applications. However, because of the hacks ##
- ## which some applications use on print dialogs, some tweaking of this script may be required. ##
- ##################################################################################################################
-
- Libraries "Main.lib";
-
- println "# Initializing…";
- Initialize();
-
- kNumDocuments := 6;
- for x := 1 to kNumDocuments
- begin
-
- DialogAction ( "OK" );
- println "# Document ", x;
-
- #### Test 1 Portrait #####################################################
- println "# Test 1 Portrait";
- println "# Page Setup…";
- select [menuItem t:/Page Setup/ m:"File"];
-
- SetPaper ( "US Letter" );
- SetOrientation ( "Portrait" );
- SetScale ( 100 );
-
- #### Additional Options from within Page Setup
- #### Turn off all options for first 9 tests
- select [button t:"Options"]!;
- SetOptions ( false, false, false, false );
- type k: { returnKey };
-
- println "# Print…";
- select [menuItem t:/Print/ m:"File"];
-
- SetCopies ( 1 );
- SetPages ( "All", "", "" );
- SetCoverPage ( "No" );
- SetPaperSource ( "Paper Cassette" );
- SetDestination ( "Printer", "", "", "" );
- println "# Synchronizing…";
- while (DialogPresent());
- results := PrintingEnabled();
- while not (results)
- results := PrintingEnabled();
-
- #### Test 2 Landscape ####################################################
- println "# Test 2 Landscape";
- println "# Page Setup…";
- select [menuItem t:/Page Setup/ m:"File"];
-
- SetPaper ( "US Letter" );
- SetOrientation ( "Landscape" );
- SetScale ( 100 );
- type k: { returnKey };
-
- println "# Print…";
- select [menuItem t:/Print/ m:"File"];
- DialogAction ( "OK" );
-
- SetCopies ( 1 );
- SetPages ( "All", "", "" );
- SetCoverPage ( "No" );
- SetPaperSource ( "Paper Cassette" );
- SetDestination ( "Printer", "", "", "" );
- println "# Synchronizing…";
- while (DialogPresent());
- results := PrintingEnabled();
- while not (results)
- results := PrintingEnabled();
-
- #### Test 3 Reduced ######################################################
- println "# Test 3 Reduced";
- println "# Page Setup…";
- select [menuItem t:/Page Setup/ m:"File"];
-
- SetPaper ( "US Letter" );
- SetOrientation ( "Portrait" );
- SetScale ( 64 );
- type k: { returnKey };
-
- println "# Print…";
- select [menuItem t:/Print/ m:"File"];
-
- SetCopies ( 1 );
- SetPages ( "All", "", "" );
- SetCoverPage ( "No" );
- SetPaperSource ( "Paper Cassette" );
- SetDestination ( "Printer", "", "", "" );
- println "# Synchronizing…";
- while (DialogPresent());
- results := PrintingEnabled();
- while not (results)
- results := PrintingEnabled();
-
- #### Test 4 Enlarged #####################################################
- println "# Test 4 Enlarged";
- println "# Page Setup…";
- select [menuItem t:/Page Setup/ m:"File"];
-
- SetPaper ( "US Letter" );
- SetOrientation ( "Portrait" );
- SetScale ( 200 );
- type k: { returnKey };
-
- println "# Print…";
- select [menuItem t:/Print/ m:"File"];
-
- SetCopies ( 1 );
- SetPages ( "All", "", "" );
- SetCoverPage ( "No" );
- SetPaperSource ( "Paper Cassette" );
- SetDestination ( "Printer", "", "", "" );
- println "# Synchronizing…";
- while (DialogPresent());
- results := PrintingEnabled();
- while not (results)
- results := PrintingEnabled();
-
- #### Test 5 Multiple Copies ##############################################
- println "# Test 5 Multiple Copies";
- println "# Page Setup…";
- select [menuItem t:/Page Setup/ m:"Disk File"];
-
- SetPaper ( "US Letter" );
- SetOrientation ( "Portrait" );
- SetScale ( 100 );
- type k: { returnKey };
-
- println "# Print…";
- select [menuItem t:/Print/ m:"Disk File"];
-
- SetCopies ( 5 );
- SetPages ( "All", "", "" );
- SetCoverPage ( "No" );
- SetDestination ( "Printer", "", "", "" );
- println "# Synchronizing…";
- while (DialogPresent());
- results := PrintingEnabled();
- while not (results)
- results := PrintingEnabled();
-
- #### Test 6 Disk File 1 ##################################################
- println "# Test 6 Disk File (PDD)";
- println "# Page Setup…";
- select [menuItem t:/Page Setup/ m:"Disk File"];
-
- SetPaper ( "US Letter" );
- SetOrientation ( "Portrait" );
- SetScale ( 100 );
- type k: { returnKey };
-
- println "# Print…";
- select [menuItem t:/Print/ m:"Disk File"];
-
- SetCopies ( 1 );
- SetPages ( "All", "", "" );
- SetCoverPage ( "No" );
- SetPaperSource ( "Paper Cassette" );
- SetDestination ( "Disk File", "Print File {x}", true, false );
- println "# Synchronizing…";
- while (DialogPresent());
- results := PrintingEnabled();
- while not (results)
- results := PrintingEnabled();
-
- #### Test 7 Disk File 2 ##################################################
- println "# Test 7 Disk File (PDD fonts)";
- println "# Page Setup…";
- select [menuItem t:/Page Setup/ m:"Disk File"];
-
- SetPaper ( "US Letter" );
- SetOrientation ( "Portrait" );
- SetScale ( 100 );
- type k: { returnKey };
-
- println "# Print…";
- select [menuItem t:/Print/ m:"Disk File"];
-
- SetCopies ( 1 );
- SetPages ( "All", "", "" );
- SetCoverPage ( "No" );
- SetPaperSource ( "Paper Cassette" );
- SetDestination ( "Disk File", "Print File (fonts) {x}", true, true );
- println "# Synchronizing…";
- while (DialogPresent());
- results := PrintingEnabled();
- while not (results)
- results := PrintingEnabled();
-
- #### Test 8 Disk File 3 ##################################################
- println "# Test 8 Disk File (PostScript)";
- println "# Page Setup…";
- select [menuItem t:/Page Setup/ m:"Disk File"];
-
- SetPaper ( "US Letter" );
- SetOrientation ( "Portrait" );
- SetScale ( 100 );
- type k: { returnKey };
-
- println "# Print…";
- select [menuItem t:/Print/ m:"Disk File"];
-
- SetCopies ( 1 );
- SetPages ( "All", "", "" );
- SetCoverPage ( "No" );
- SetPaperSource ( "Paper Cassette" );
- SetDestination ( "Disk File", "PostScript® File {x}", false, false );
- println "# Synchronizing…";
- while (DialogPresent());
- results := PrintingEnabled();
- while not (results)
- results := PrintingEnabled();
-
- #### Test 9 Disk File 4 ##################################################
- println "# Test 9 Disk File (PostScript fonts)";
- println "# Page Setup…";
- select [menuItem t:/Page Setup/ m:"Disk File"];
-
- SetPaper ( "US Letter" );
- SetOrientation ( "Portrait" );
- SetScale ( 100 );
- type k: { returnKey };
-
- println "# Print…";
- select [menuItem t:/Print/ m:"Disk File"];
-
- SetCopies ( 1 );
- SetPages ( "All", "", "" );
- SetCoverPage ( "No" );
- SetPaperSource ( "Paper Cassette" );
- SetDestination ( "Disk File", "PostScript® File (fonts) {x}", false, true );
- println "# Synchronizing…";
- while (DialogPresent());
- results := PrintingEnabled();
- while not (results)
- results := PrintingEnabled();
-
- #### Test 10 Flip Horizontal #############################################
- println "# Test 10 Flip Horizontal";
- println "# Page Setup…";
- select [menuItem t:/Page Setup/ m:"Disk File"];
-
- SetPaper ( "US Letter" );
- SetOrientation ( "Portrait" );
- SetScale ( 100 );
-
- #### Additional Options from within Page Setup
- select [button t:"Options"]!;
- SetOptions ( true, false, false, false );
- type k: { returnKey };
-
- println "# Print…";
- select [menuItem t:/Print/ m:"Disk File"];
-
- SetCopies( 1 );
- SetPages ( "All", "", "" );
- SetCoverPage ( "No" );
- SetPaperSource ( "Paper Cassette" );
- SetDestination ( "Printer", "", "", "" );
- println "# Synchronizing…";
- while (DialogPresent());
- results := PrintingEnabled();
- while not (results)
- results := PrintingEnabled();
-
- #### Test 11 Flip Vertical ###############################################
- println "# Test 11 Flip Vertical";
- println "# Page Setup…";
- select [menuItem t:/Page Setup/ m:"Disk File"];
-
- SetPaper ( "US Letter" );
- SetOrientation ( "Portrait" );
- SetScale ( 100 );
-
- #### Additional Options from within Page Setup
- select [button t:"Options"]!;
- SetOptions ( false, true, false, false);
- type k: { returnKey };
-
- println "# Print…";
- select [menuItem t:/Print/ m:"Disk File"];
-
- SetCopies ( 1 );
- SetPages ( "All", "", "" );
- SetCoverPage ( "No" );
- SetPaperSource ( "Paper Cassette" );
- SetDestination ( "Printer", "", "", "" );
- println "# Synchronizing…";
- while (DialogPresent());
- results := PrintingEnabled();
- while not (results)
- results := PrintingEnabled();
-
- #### Test 12 Invert Image ################################################
- println "# Test 12 Invert Image";
- println "# Page Setup…";
- select [menuItem t:/Page Setup/ m:"Disk File"];
-
- SetPaper ( "US Letter" );
- SetOrientation ( "Portrait" );
- SetScale ( 100 );
-
- #### Additional Options from within Page Setup
- select [button t:"Options"]!;
- SetOptions ( false, false, true, false );
- type k: { returnKey };
-
- println "# Print…";
- select [menuItem t:/Print/ m:"Disk File"];
-
- SetCopies ( 1 );
- SetPages ( "All", "", "" );
- SetCoverPage ( "No" );
- SetPaperSource ( "Paper Cassette" );
- SetDestination ( "Printer", "", "", "" );
- println "# Synchronizing…";
- while (DialogPresent());
- results := PrintingEnabled();
- while not (results)
- results := PrintingEnabled();
-
- #### Test 13 Precision Bitmap Alignment ##################################
- println "# Test 13 Precision Bitmap Alignment";
- println "# Page Setup…";
- select [menuItem t:/Page Setup/ m:"Disk File"];
-
- SetPaper ( "US Letter" );
- SetOrientation ( "Portrait" );
- SetScale ( 100 );
-
- #### Additional Options from within Page Setup
- select [button t:"Options"]!;
- SetOptions ( false, false, false, true );
- type k: { returnKey };
-
- println "# Print…";
- select [menuItem t:/Print/ m:"Disk File"];
-
- SetCopies ( 1 );
- SetPages ( "All", "", "" );
- SetCoverPage ( "No" );
- SetPaperSource ( "Paper Cassette" );
- SetDestination ( "Printer", "", "", "" );
- println "# Synchronizing…";
- while (DialogPresent());
- results := PrintingEnabled();
- while not (results)
- results := PrintingEnabled();
-
- Quit();
- println "# Loading next file…";
- LoadNextDocument();
- end;